<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class MY_Controller extends Controller
{
  var $currency_decimal;

  function My_Controller()
  {
    parent::Controller();

    // The cents separater is a hidden config variable.  If it isn't available default to '.'
    if ($this->config->item('currency_decimal') == '')
    {
      $this->config->set_item('currency_decimal', '.');
    }

    // a list of unlocked (ie: not password protected) controllers.  We assume
    // controllers are locked if they aren't explicitly on this list
    $unlocked = array('home', 'login');

    /*if ( ! $this->site_sentry->is_logged_in() AND ! in_array(strtolower(get_class($this)), $unlocked))
    {
      redirect('home/');
    }

    $this->output->enable_profiler($this->config->item('show_profiler'));

    $this->db_sispi = $this->load->database('sispi', TRUE); */
  }

}
